package com.weixing.mall.provider.model.vo.report.product;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.provider.api.model.enums.OrderTypeEnum;
import com.weixing.mall.provider.support.excel.EnumConverter.OrderTypeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author jzy
 * @date 2020/6/9
 */
@Data
@ApiModel(value="ProductSaleVolumeDetailVo", description="商品部报表-3商品销量报表-详细数据")
public class ProductSaleVolumeDetailVo {
    @ApiModelProperty(value = "订单号")
    @ExcelProperty("订单号")
    private String orderSn;
    @ApiModelProperty(value = "商品名称")
    @ExcelProperty("商品名称")
    private String goodsName;
    @ApiModelProperty(value = "款号")
    @ExcelProperty("款号")
    private String styleNo;
    @ApiModelProperty(value = "颜色")
    @ExcelProperty("颜色")
    private String color;
    @ApiModelProperty(value = "尺码")
    @ExcelProperty("尺码")
    private String size;
    @ApiModelProperty(value = "收货人信息")
    @ExcelProperty("收货人信息")
    private String contactUser;
    @ApiModelProperty(value = "收货人联系方式")
    @ExcelProperty("收货人联系方式")
    private String contactPhone;
    @ApiModelProperty(value = "审单时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("审单时间")
    private Date auditTime;
    @ApiModelProperty(value = "下单类型")
    @ExcelProperty(value = "下单类型",converter = OrderTypeConverter.class)
    private OrderTypeEnum orderType;
    @ApiModelProperty(value = "商品专区")
    @ExcelProperty("商品专区")
    private String partitionName;
}
